Listing dwarves

<% for column in Dwarf.content_columns %> <% end %> <% for dwarf in @dwarves %> <% for column in Dwarf.content_columns %> <% end %> <% end %>
<%= column.human_name %>Mountain Spouse
<%=h dwarf.send(column.name) %><%= ( dwarf.mountain != nil) ? h(dwarf.mountain.name) : "" %> <%= ( dwarf.spouse != nil) ? h(dwarf.spouse.name) : "" %> <%= link_to 'Show', :action => 'show', :id => dwarf %> <%= link_to 'Edit', :action => 'edit', :id => dwarf %> <%= link_to 'Destroy', {:action => 'destroy', :id => dwarf}, :confirm => 'Are you sure?' %>
<%= link_to_remote("visits", :update => "div" + dwarf.id.to_s, :url => { :action => :visits, :id => dwarf }) %>
<%= link_to 'Previous page', { :page => @dwarf_pages.current.previous } if @dwarf_pages.current.previous %> <%= link_to 'Next page', { :page => @dwarf_pages.current.next } if @dwarf_pages.current.next %>
<%= link_to 'New dwarf', :action => 'new' %>
<%= link_to 'List Mountains', :controller => 'mountains', :action => 'list' %>